package com.education.online.service.impl;

import com.education.common.utils.Convert;
import com.education.online.mapper.OPrepaTypeMapper;
import com.education.online.mapper.OUserLiveMapper;
import com.education.online.pojo.OPrepaType;
import com.education.online.service.OPrepaTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


/**
 * 备课资源类型表 服务层实现
 *
 * @author d
 * @date 2020-06-08 15:32:23
 */
@Service
public class OPrepaTypeServiceImpl implements OPrepaTypeService {

    @Autowired
    private OPrepaTypeMapper oPrepaTypeMapper;

    //查询备课资源类型表信息
    @Override
    public OPrepaType selectOPrepaTypeById(Integer id) {
        return oPrepaTypeMapper.selectOPrepaTypeById(id);
    }

    // 查询备课资源类型表列表
    @Override
    public List<OPrepaType> selectOPrepaTypeList(OPrepaType oPrepaType) {
        return oPrepaTypeMapper.selectOPrepaTypeList(oPrepaType);
    }

    // 新增备课资源类型表
    @Override
    public int insertOPrepaType(OPrepaType oPrepaType) {
        return oPrepaTypeMapper.insertOPrepaType(oPrepaType);
    }

    //修改备课资源类型表
    @Override
    public int updateOPrepaType(OPrepaType oPrepaType) {
        return oPrepaTypeMapper.updateOPrepaType(oPrepaType);
    }

    //删除备课资源类型表对象
    @Override
    public int deleteOPrepaTypeByIds(String ids) {
        return oPrepaTypeMapper.deleteOPrepaTypeByIds(Convert.toStrArray(ids));
    }
}